package bufferedStream;

import java.io.*;

public class Demo1 {

    public static void main(String[] args) throws IOException {
        //字节输入缓冲流
        BufferedInputStream bis = new BufferedInputStream(new FileInputStream("IODemo\\you.txt"));
        BufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream("IODemo\\me.txt"));
        //进行复制
        int b;
        while ((b = bis.read()) != -1) {
            bos.write(b);
        }
        //释放资源
        bos.close();
        bis.close();
    }
}
